#!/usr/bin/python
import subprocess, shlex, cgi

command_find = 'ls -l /'
args = shlex.split(command_find)
pf = subprocess.Popen(args,stdout=subprocess.PIPE)


#pf.stdout.close()
line = pf.stdout.readline()
print """Content-type: text/html\n\n"""

while line :	
	print """%s</br>"""%(line)
	line = pf.stdout.readline()
pf.wait()
